using System.ComponentModel.DataAnnotations;
namespace webapi.Models
{
    public class GetArticleRespone
    {   
        /// <summary>
        /// 文章作者id
        /// </summary>
        [Required(ErrorMessage = "用户id不能为空")]
        public int UserId { get; set; }
        /// <summary>
        /// 文章作者
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空")]
        public string UserName { get; set; }
        /// <summary>
        /// 分类id
        /// </summary>
        [Required(ErrorMessage = "分类id不能为空")]
        public int CateId { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [Required(ErrorMessage = "分类名称不能为空")]
        public string CateName { get; set; }
        /// <summary>
        /// 文章id
        /// </summary>
        [Required(ErrorMessage = "文章id不能为空")]
        public int ArticleId { get; set; }
        /// <summary>
        /// 文章标题
        /// </summary>
        [Required(ErrorMessage = "文章标题不能为空")]
        public string ArticleTitle { get; set; }
        /// <summary>
        /// 文章内容
        /// </summary>
        [Required(ErrorMessage = "文章内容不能为空")]
        public string ArticleBody { get; set; }
        /// <summary>
        /// 文章点赞数
        /// </summary>
        public int? LikeSum { get; set; }
        /// <summary>
        /// 文章浏览数
        /// </summary>
        public long? WatchSum { get; set; }
    }
}